package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * 用户表 数据层
 * 
 * @author ruoyi
 */
public interface LeftoverMapper
{
    /**
     * 根据条件分页查询用户列表
     * 
     * @param leftover 用户信息
     * @return 用户信息集合信息
     */
    public List<Leftover> selectLeftoverList(Leftover leftover);


    Leftover selectLeftoverByTableId(String tableId);

    int updateLeftover(Leftover leftover);

    void insertLeftover(Leftover leftover);

    int queryState(String materialId);

    List<String> selectDbplantById(String materialId);

    BigDecimal selectInNum(String materialId);

    void updateState(LeftoverIdState leftoverIdState);

    List<Leftover> selectLeftoverIdList(String companyId);

    void updateMaterial(LeftoverIdState leftoverIdState);

    void updateMes(UpdateMes updateMes);

    List<LeftoverQuery> selectLeftoverQueryList(LeftoverQuery leftoverQuery);
}
